#ifndef _CAMERA
#define _CAMERA

#include <stdio.h>
#include <glut.h>

class Camera {

public:
	GLfloat atx;
	GLfloat aty;
	GLfloat atz;
	GLfloat tox;
	GLfloat toy;
	GLfloat toz;

	Camera();
    void setCamera(GLfloat vatx, GLfloat vaty, GLfloat vatz, GLfloat vtox, GLfloat vtoy, GLfloat vtoz);
	void restauraCamera();
	void especificaPosicao();
};

Camera::Camera() 
{
	atx = 0.0f;
	aty = 0.0f;
	atz = 0.0f;
	tox = 0.0f;
	toy = 0.0f;
	toz = -0.01f;
}

void Camera::setCamera(GLfloat vatx, GLfloat vaty, GLfloat vatz, GLfloat vtox, GLfloat vtoy, GLfloat vtoz)
{
   atx = vatx;
   aty = vaty;
   atz = vatz;
   tox = vtox;
   toy = vtoy;
   toz = vtoz;
}

void Camera::restauraCamera()
{
	atx = 0.0f;
	aty = 0.0f;
	atz = 0.0f;
	tox = 0.0f;
	toy = 0.0f;
	toz = -0.01f;
}

void Camera::especificaPosicao()
{
	gluLookAt (atx, aty, atz, tox, toy, toz, 0, 1, 0);
}

#endif
